#import <Cocoa/Cocoa.h>
#import <SMRColumnView/SMRColumnView.h>
#import "SMRManagingWindowController.h"

@class SMRPopoverWindow;
@class SMRColumnEntry;

@interface ALTemplateEditorPopoverController : SMRManagingWindowController <SMRColumnViewDelegate, NSWindowDelegate> {

}

@property (nonatomic, retain) IBOutlet SMRColumnView *elementsColumnView;
@property (nonatomic, retain) IBOutlet SMRColumnEntry *elementTemplatePrototype;
@property (nonatomic, retain) IBOutlet NSView *entryDetailsView;
@property (nonatomic, retain) IBOutlet NSTextField *descriptionTextField;
//@property (nonatomic, retain) IBOutlet NSControl *textElementDetailsView;
@property (nonatomic, retain) id templateEditorObject;

-(void)displayPopoverForObject:(id)templateObject inView:(NSView *)targetView withRect:(NSRect)targetRect;
-(IBAction)addElementTemplate:(id)sender;

@end
